﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Reflection;


namespace UIKit
{
    /// <summary>
    /// These are the UIKit extensions to the Foundation framework.
    /// </summary>
    public partial class NSBundle
    {
        
        /// <summary>
        /// to imlement with wpf loader
        /// </summary>
        /// <param name="name"></param>
        /// <param name="owner"></param>
        /// <param name="options"></param>
        /// <returns></returns>
        public object[] loadNibNamed(string name, object owner, Dictionary<object, object> options) {
            // LG: Quick and dirty loader:
            Type t = Type.GetType(name);
            if (t != null)
            {
                object instance = Activator.CreateInstance(t);
                return new object[] { instance };
            }
            return null;
        }

        /// <summary>
        /// Deprecated in iPhone OS 3.0.
        /// </summary>
        public const string  UINibProxiedObjectsKey = @"UINibProxiedObjectsKey";
        /// <summary>
        /// Used from iPhone 1.0+
        /// </summary>
        public const string UINibExternalObjects = @"UINibExternalObjects";


        #region non-UIKit code
            
        #endregion

    }
}
